<?php

/**
 * 应用初始化程序
 * 
 * @package core
 * @subpackage common
 * @author 张立冰 <roast@php.net>
 * 
 * $Id: common.inc.php 18 2011-03-22 12:58:01Z sbnnest@gmail.com $
 */

require_once(dirname(__FILE__) . '/' . 'config/application.cfg.php');
require_once(dirname(__FILE__) . '/' . 'config/database.cfg.php');

require_once($cfg['path']['lib'] . 'base.inc.php');

$cfg['path']['current'] = dirname($_SERVER['SCRIPT_FILENAME']) . '/';

header('Content-type: ' . $cfg['page']['contentType'] . '; charset=' . $cfg['page']['charset']);
header("P3P: CP=CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR");
if (SESSION)
	session_start();

// 初始化application
$app = new Application();

?>